<?php
defined('_JEXEC') or die('Restricted access');?>
<form action="index.php" method="post" name="adminForm">
	<div id="col100">
		<table cellspacing="0" cellpading="0" border="0" width="100%">
			<tr>
				<td valign="top">
					<fieldset class="adminForm">
						<legend><?php echo JText::_('COMPLAINTS_COMMENT'); ?></legened>
						<table class="adminForm">
							<tr>
								<td width="100" align="right" class="key">
									<label for="complaint_id"><?php echo JText::_('COMPLAINTS_"COMPLAINT ID"'); ?></label>
								</td>
								<td>
									<input class="text_area required" type="text" name="comment_complaint_id" id="comment_complaint_id" size="32", maxlength="255", value="<?php echo $this->comment->complaint_id; ?>" />
								</td>
							</tr>
							<tr>
								<td width="100" align="right" class="key">
									<label for="parent_id"><?php echo JText::_('COMPLAINTS_"PARENT COMMENT ID"'); ?></label>
								</td>
								<td>
									<input class="text_area required" type="text" name="comment_parent_id" id="comment_parent_id" size="32", maxlength="255", value="<?php echo $this->comment->parent_id; ?>" />
								</td>
							</tr>
							<tr>
								<td width="100" align="right" class="key">
									<label for="comment_content"><?php echo JText::_('COMPLAINTS_"CONTENT"'); ?></label>
								</td>
								<td>
									<div>
										<?php
											$editor =& JFactory::getEditor();
											$params = array('smilies' => '0',
													'style' => '1',
													'layer' => '0',
													'table' => '0',
													'clear_entities' => '0');
											echo $editor->display('comment_comment_content', $this->comment->comment_content, '600', '400', '40', '20', false, $params);
										?>
									</div>
								</td>
							</tr>
							<tr>
								<td width="100" align="right" class="key">
									<label for="userid"><?php echo JText::_('COMPLAINTS_"JOOMLA USER ID"'); ?></label>
								</td>
								<td>
									<input class="text_area required" type="text" name="comment_userid" id="comment_userid" size="32", maxlength="255", value="<?php echo $this->comment->userid; ?>" />
								</td>
							</tr>
						</table>
					</fieldset>
				</td>
			</tr>
		</table>
	</div>

	<input type="hidden" name="check" value="post" />
	<input type="hidden" name="option" value="com_complaints" />
	<input type="hidden" name="task" value="" />
	<input type="hidden" name="controller" value="comment" />
	<input type="hidden" name="comment_id" value="<?php echo $this->comment_id; ?>" />
</form>
